package com.unknowpupil.sell.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * <p>
 * 商品表
 * </p>
 *
 * @author AutoGenerator
 */
@TableName("product_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class ProductInfo implements Serializable {
    @TableId(value = "product_id", type = IdType.INPUT)
    private String productId;
    /**
     * 名称
     */

    @ApiModelProperty(value = "名称")
    private String productName;
    /**
     * 单价
     */

    @ApiModelProperty(value = "单价")
    private BigDecimal productPrice;
    /**
     * 单价
     */

    @ApiModelProperty(value = "库存")
    private Integer productStock;
    /**
     * 描述
     */

    @ApiModelProperty(value = "描述")
    private String productDescription;
    /**
     * 小图
     */

    @ApiModelProperty(value = "小图")
    private String productIcon;
    /**
     * 类目编号
     */

    @ApiModelProperty(value = "类目编号")
    private Integer categoryType;
    /**
     * 创建时间
     */

    @TableField(value = "created", fill = FieldFill.INSERT)
    private Date created;
    @TableField(value = "updated", fill = FieldFill.INSERT_UPDATE)
    private Date updated;

}
